﻿<%@ Page Language="C#" MasterPageFile="~/webadmin/pages/MasterPage.master" AutoEventWireup="true" CodeFile="TinTuc_frm.aspx.cs" Inherits="webadmin_pages_TinTuc_frm" 
Title="Thêm mới tin tức" %>

<%@ Register Assembly="RadUpload.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<%@ Register Assembly="RadEditor.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server">
			
				
		
		<% if (!string.IsNullOrEmpty(messnotID.ToString()))
     { %>
		<div class="notification error close png_bg" style="right: 0px; top: 0px; height: 43px">
					<div>Thông báo lỗi:  <b><i><%=messnotID%></i></b>
						</div>
			</div>
			<% } %>
	    <!-- End Notifications -->
			
		
			
			<!-- End Notifications -->
            
			<p id="page-intro">Chọn tác vụ bạn muốn thực hiện</p>
			
			<ul class="shortcut-buttons-set">
				
				<li><a class="shortcut-button" href="TinTuc_frm.aspx?act=add"><span>
					<img src="../resources/images/icons/pencil_48.png" alt="icon" width="48" height="48" /><br />
					Thêm mới Bài viết 
				</span></a></li>
				
                <li><a class="shortcut-button" href="TinTuc_list.aspx"><span>
					<img src="../resources/images/icons/Cash_machine.png" alt="icon" width="48" height="48" /><br />
					Xem danh sách tin tức&nbsp;</span></a></li>
			  
		  </ul>
	    <!-- End .shortcut-buttons-set -->
			
			<div class="clear"></div> <!-- End .clear -->
<%if (!string.IsNullOrEmpty(messnotID))
  {%>
 <div class="content-box closed-box"><!-- Start Content Box -->
 <%}
   else
   { %>
   <div class="content-box"><!-- Start Content Box -->
 <%} %>
 </div>
				
				<div class="content-box-header">
					
					<h3>Thêm mới bài viết  </h3>
					
					
					
				  <div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
                <div class="content-box-content">
                <% if(!string.IsNullOrEmpty(mess)){ %>
		<div class="notification error png_bg">
				<a href="#" class="close"><img src="../resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
				Thông báo lỗi:  <b><i><%=mess%></i></b></div>
			</div>
			<% } %>
                <%
                    if (!string.IsNullOrEmpty(Request.QueryString["act"])) act = Request.QueryString["act"].Trim();
                    if (!(act=="add")){ %>
                <p><label>Mã tin:&nbsp;
                            <asp:TextBox ID="txtMa" runat="server" ReadOnly="True" Enabled="False"></asp:TextBox><span></span></label></p>
                    <p>
                    <%} %>
                        <label > Nhóm Tin </label>
                        <asp:DropDownList CssClass="text-input medium-input" ID="cboLoaiTinTuc" runat="server" OnSelectedIndexChanged="cboLoaiTinTuc_SelectedIndexChanged" ></asp:DropDownList>
                        </p>
                    <p> 
                    <label > Tiêu Đề </label>
                     <asp:TextBox ID="txtTieuDe" runat="server" CssClass="text-input large-input" Width="641px"></asp:TextBox>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTieuDe"
               ErrorMessage="(*) Tiêu đề không được rỗng"></asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <label > Hình ảnh </label>
                        <asp:FileUpload ID="txtHinhAnh" CssClass="text-input medium-input" runat="server" Width="390px" />
                    </p>
                    <p>
                    <label > Mô tả ngắn:</label></p>
                    <p>
                        <asp:TextBox ID="txtMoTaNgan" runat="server" Rows="5" TextMode="MultiLine"></asp:TextBox></p>
                    <p>
                    <label > Nội Dung bài viết 
                        <rad:RadEditor ID="txtNoiDung" runat="server"
                            BorderStyle="None" ConvertTagsToLower="True" ConvertToXhtml="False" DocumentsFilters="*.doc,*.docx,*.xls,*.xlsx,*.pdf,*.txt,*.ppt,*.pptx,*.prc"
                            EnableClientSerialize="True" EnableContextMenus="True" EnableDocking="False" EnableEnhancedEdit="True"
                            EnableHtmlIndentation="True" EnableServerSideRendering="True" EnableTab="True"
                            ImagesFilters="*.gif,*.png,*.jpg,*.jpeg,*.bmp"
                            MediaFilters="*.swf"
                            OnClientCancel="" OnClientCommandExecuted="" OnClientCommandExecuting="" OnClientInit=""
                            OnClientLoad="" OnClientModeChange="" OnClientSubmit="" PassSessionData="True"
                            RenderAsTextArea="False" Skin="Web20" SpellEditDistance="1"
                            ToolbarMode="Default" ToolsWidth="" DeleteDocumentsPaths="../Uploads/Delete" DeleteFlashPaths="../Uploads/Delete" DeleteImagesPaths="../Uploads/Delete" DeleteMediaPaths="../Uploads/Delete" DeleteTemplatePaths="../Uploads/Delete" DocumentsPaths="../Uploads/Documents" FlashPaths="../../Uploads/Flashs" ImagesPaths="../../Uploads/Images" MediaPaths="../../Uploads/Flashs" SaveInFile="True" ShowSubmitCancelButtons="False" UploadDocumentsPaths="../../Uploads/Documents" UploadFlashPaths="../../Uploads/Flashs" UploadImagesPaths="../../Uploads/Images" UploadMediaPaths="../../Uploads/Flashs" UseClassicDialogs="True" Width="100%" ImagesPathToStrip="../../Uploads/Images" MaxDocumentSize="5242880" MaxFlashSize="5242880" MaxImageSize="5242880">
                        </rad:RadEditor>
                    </label>
                    
                     
                  
                    </p>
                     <p>
                       <asp:CheckBox ID="chkKichHoat" runat="server" Text="Cho phép hiển thị" />
                    </p>
                    <p>
                     <asp:Button ID="Button1" CssClass="button" runat="server" OnClick="Button1_Click" Text="Lưu Thông Tin" />
                    <input class="button" type="reset" value="Reset" />
                    </p>
                </div>
   </div>
</asp:Content>

